package com.arch.flink.archetype.fs;

import org.apache.flink.core.fs.FileSystem;
import org.apache.flink.core.fs.Path;

/**
 * @author pizhihui
 * @date 2023-08-14 11:44
 */
public class FileSystemDemo {

    public static void main(String[] args) {

        String tmpPath = System.getProperty("java.io.tmpdir");
        System.out.println(tmpPath);

        try {
            Path path = new Path(tmpPath);
            FileSystem fileSystem = path.getFileSystem();
            System.out.println(fileSystem);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
